package com.cat.responsibility;

/**
 * @author cat
 * @version 2025/5/27 13:56
 * @description 总经理(具体处理类)
 * @since JDK17
 */

public class GeneralManager extends Handler {

    public GeneralManager() {
        super(Handler.NUM_THREE, Handler.NUM_SEVEN);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getDays() + "天,理由:" + leave.getContent());
        System.out.println("总经理审批 : 同意");
    }
}
